Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build: include private exports in fesms #23054

Closed
wants to merge 1 commit into from

Conversation

alexeagle
Copy link
Contributor

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

[ ] Bugfix
[ ] Feature
[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[ ] CI related changes
[ ] Documentation content changes
[ ] angular.io application / infrastructure changes
[ ] Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

[ ] Yes
[ ] No

Other information

@alexeagle alexeagle added the target: major This PR is targeted for the next major release label Mar 29, 2018
@mary-poppins
Copy link

You can preview c809b1b at https://pr23054-c809b1b.ngbuilds.io/.

@alexeagle alexeagle force-pushed the fesm_fix branch 2 times, most recently from d8b0c83 to 5cfc94f Compare March 29, 2018 05:56
@mary-poppins
Copy link

You can preview d8b0c83 at https://pr23054-d8b0c83.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 5cfc94f at https://pr23054-5cfc94f.ngbuilds.io/.

@alexeagle alexeagle force-pushed the fesm_fix branch 2 times, most recently from 5b33f28 to 0b6e615 Compare March 29, 2018 07:25
@mary-poppins
Copy link

You can preview 5b33f28 at https://pr23054-5b33f28.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 0b6e615 at https://pr23054-0b6e615.ngbuilds.io/.

# We do this just when producing a flat module index for a publishable ng_module
if _should_produce_flat_module_outs(ctx):
flat_module_out = _flat_module_out_file(ctx)
devmode_js_files.append(ctx.actions.declare_file("%s.js" % flat_module_out))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe it's me being spoiled by javascript but I find this "backwards/printf" interpolation style less readable than using +.

it would be cool if skylark added support for f-string interpolation (f'Hello {name}! This is {program}') https://www.programiz.com/python-programming/string-interpolation.

Can we put that on our bazel wishlist?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

file a feature request? I'm only tracking things that will block adoption.

Copy link
Contributor

@IgorMinar IgorMinar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the rest looks good

for dep in deps_in_package:
# Intentionally evaluates to empty string for the main entry point
entry_point = dep.label.package[len(ctx.label.package) + 1:]
if hasattr(dep, "angular") and dep.angular.flat_module_metadata:
Copy link
Contributor

@IgorMinar IgorMinar Mar 29, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this fails with

"/home/travis/.cache/bazel/_bazel_travis/45f6fb64fc863da959d1d83d36b18214/external/angular/src/ng_package/ng_package.bzl", line 130, in _ng_package_impl
		dep.angular.flat_module_metadata
'struct' object has no attribute 'flat_module_metadata'
Available attributes: summaries

@IgorMinar IgorMinar force-pushed the fesm_fix branch 2 times, most recently from 5d6324c to 41c3f9f Compare March 29, 2018 19:08
@mary-poppins
Copy link

You can preview 5d6324c at https://pr23054-5d6324c.ngbuilds.io/.

@mary-poppins
Copy link

You can preview 41c3f9f at https://pr23054-41c3f9f.ngbuilds.io/.

@alexeagle alexeagle added the action: merge The PR is ready for merge by the caretaker label Mar 29, 2018
@IgorMinar IgorMinar closed this in 0d9140c Mar 29, 2018
@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes target: major This PR is targeted for the next major release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants